package com.imooc.project.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 发票信息管理表
 * </p>
 *
 * @author jobob
 * @since 2021-07-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="TUserInvoice对象", description="发票信息管理表")
public class TUserInvoice implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "购买单号")
    private Long orderNo;

    @ApiModelProperty(value = "成交金额（元）")
    private BigDecimal goodsAmount;

    @ApiModelProperty(value = "手续费金额（元）")
    private BigDecimal chargeAmount;

    @ApiModelProperty(value = "成交总金额（元）")
    private BigDecimal amount;

    @ApiModelProperty(value = "通行证编号")
    private String userId;

    @ApiModelProperty(value = "申请人账号（通行证账号）")
    private String userName;

    @ApiModelProperty(value = "申请人姓名（通行证用户姓名）")
    private String realName;

    @ApiModelProperty(value = "开票状态（0：未开票   1：已开票）")
    private Integer status;

    @ApiModelProperty(value = "创建时间（申请时间）")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "开票时间")
    private LocalDateTime billingTime;

    @ApiModelProperty(value = "发票类型（0：电子普通发票   1：增值税专用发票）")
    private String type;

    @ApiModelProperty(value = "发票内容（0：广告服务*广告服务费   1：广告服务*信息发布服务费）")
    private String content;

    @ApiModelProperty(value = "发票抬头类型（0：个人   1：单位）")
    private String headType;

    @ApiModelProperty(value = "发票抬头")
    private String head;

    @ApiModelProperty(value = "纳税人识别号")
    private String taxpayerNum;

    @ApiModelProperty(value = "联系人")
    private String taxpayerName;

    @ApiModelProperty(value = "电子邮箱")
    private String email;

    @ApiModelProperty(value = "注册地址")
    private String address;

    @ApiModelProperty(value = "注册电话")
    private String phone;

    @ApiModelProperty(value = "开户银行")
    private String bank;

    @ApiModelProperty(value = "银行账号")
    private String bankAccount;

    @ApiModelProperty(value = "发票邮寄地址")
    private String postAddress;

    @ApiModelProperty(value = "委托付款书")
    private String delegateBook;

    @ApiModelProperty(value = "创建人")
    private String createUser;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "更新人")
    private String updateUser;


}
